<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2020/5/10
 * Time: 10:43
 */

namespace app\common\service;


class HostStatus
{
    /**
     * @name 根据条件修改数据
     * @param array $condition
     * @param array $data
     * @Author wx
     * @date 2019/8/14 14:56
     */
    function modify($condition = array(), $data = array())
    {
       db('host_status')->where($condition)->update($data);
    }

    /**
     * @name 根据id删除
     * @param $id
     * @Author wx
     * @date time
     */
    function del($id)
    {
        db('host_status')->where('host_id','in',$id)->delete();
    }
}